﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using W.Models.DataAccess;

namespace W.Models.Utils
{
    public static class CurrentUser
    {
        private static string _name;
        private static int _id;

        public static int Id
        {
            get { return CurrentUser._id; }
        }

        public static string Name
        {
            get { return CurrentUser._name; }
        }

        public static void AssignUser(Usuarios Usuario)
        {
            _name = Usuario.username;
            _id = Usuario.id;
        }
    }
}
